package com.zzyl;

import com.zzyl.common.utils.AsciiArtUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

import java.io.IOException;
import java.net.URL;
import java.time.LocalDateTime;

/**
 * 启动程序
 *
 * @author ruoyi
 */
//@ComponentScan({"com.zzyl.web","com.zzyl.nursing"})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class RuoYiApplication {
    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("\n\n" +
                "  ♥╣════════════════════════════╠♥\n" +
                "    (｡♥‿♥｡)  【中州养老系统启动成功】 (｡♥‿♥｡)\n" +
                "  ♥╠════════════════════════════╣♥\n" +
                "       /\\_____/\\    ┏━━━━━━━━━━━━━┓\n" +
                "      (  o   o  )   ┃  温暖守护，安心晚年  ┃\n" +
                "      /  >▼<  \\    ┗━━━━━━━━━━━━━┛\n" +
                "   〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓\n" +
                "  ☆ 老人健康监测: ✅在线   ☆ 家属通知: ✅畅通 \n" +
                "  ☆ 智能看护: ✅激活     ☆ 快乐养老: ❤️进行中 \n" +
                "  ╰(⊙д⊙)╮  当前时间: " + LocalDateTime.now() + " ╭(⊙д⊙)╯\n" +
                "  ✿◕ ‿ ◕✿ 技术支持: 中州智慧养老科技 ✿◕ ‿ ◕✿\n\n");
        try {
            // 打印黑白ASCII艺术
//            AsciiArtUtils.printAsciiArt("path/to/image.png", 80);
            // 打印彩色ASCII艺术（需要支持ANSI的控制台）
            AsciiArtUtils.printAsciiArt(new URL("https://itzq-images.oss-cn-beijing.aliyuncs.com/2025/05/5f6efb1d-d358-4fd2-b78c-d82053516dad.jpg"), 60, true);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
